package com.syyo.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wang
 * @date: 2021/2/24 18:19
 * @Description: 商品模块的常量
 */

public class ProductContant {


    // 商品属性枚举
    public enum AttrEnum {

        ATTR_TYPE_BASE(1, "基本属性"),
        ATTR_TYPE_SALE(0, "销售属性"),

        PLACEHOLDER(0, "");// 占位符,方便快速编写代码（无其他业务作用）

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        private Integer code;
        private String msg;

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    // 商品属性枚举
    public enum StatusEnum {

        NEW_SPU(0, "新建"),
        SPU_UP(1, "上架"),
        SPU_DOWN(2, "下架"),

        PLACEHOLDER(0, "");// 占位符,方便快速编写代码（无其他业务作用）

        StatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        private Integer code;
        private String msg;

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

}
